<?php


/**
 * Facilities class.
**/
class Facilities extends EMongoEmbeddedDocument {
  // public $rndId;
  public $gid;
  public $position;
  public $rotation;
  public $parasitizedFace;
  public function getCollectionName() {
    return 'Facilities';
  }
  /**
   * This method have to be defined in every model, like with normal CActiveRecord
   */
  public static function model($className = __CLASS__) {
    return parent :: model($className);
  }
    
  public static function findByGid($id) {
    return $goods = self :: model()->findByAttributes(array ('_id' => $id));
  }
  
}